package com.ruoyi.workflow.mapper;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.workflow.domain.Message;
import com.ruoyi.workflow.dto.MessageResDto;
import com.ruoyi.workflow.dto.MessageSaveDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author zhouzhixiong
 * @Date 2024/3/11 22:16
 */
public interface UserMessageMapper {
    void save(MessageSaveDto messageSaveDto);

    List<MessageResDto> list(Long userId);

    void handleBatch(@Param("messageIds") List<Integer> messageIdList, @Param("handleDate") Date date);

    MessageResDto detail(String messageId);

    void deleteBatch(List<Integer> messageIdList);
}
